<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
html {
  font-family: Arial,Helvetica,sans-serif;
  background-color: white;
  color: black;
}
table {
  border-collapse: collapse;
  empty-cells: show;
  margin: 1em 0em;
  border: 1px solid black;
}
th, td {
  border: 1px solid black;
  padding: 0.1em 0.2em;
  height: 1.5em;
  width: 12em;
}
td.colspan4, th.colspan4 {
    width: 48em;
}
td.colspan3, th.colspan3 {
    width: 36em;
}
td.colspan2, th.colspan2 {
    width: 24em;
}
th {
  background-color: rgb(192, 192, 192);
  color: black;
  height: 1.7em;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.1em;
}
td.name {
  background-color: rgb(240, 240, 240);
  letter-spacing: 0.1em;
}
td.name, th.name {
  width: 10em;
}
</style>
<title>Ssh Resources</title>
</head>
<body>
<h1>Ssh Resources</h1>
<table border="1" id="setting">
<tr>
<th class="name" colspan="5">Setting</th>
</tr>
<tr>
<td class="name">Library</td>
<td>SSHLibrary</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">Resource</td>
<td>common_resources.html</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<table border="1" id="variable">
<tr>
<th class="name" colspan="5">Variable</th>
</tr>
<tr>
<td class="name">${PASS}</td>
<td>1</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">${DEFAULT_SUBSCRIBER_AIRTIME_BALANCE}</td>
<td>100000</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name">${DEFAULT_ALLOWED_MSISDN_REG_EXP}</td>
<td>.*::4670.*</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<table border="1" id="keyword">
<tr>
<th class="name" colspan="5">Keyword</th>
</tr>
<tr>
<td class="name"><a name="keyword_Create SSH Connection">Create SSH Connection</a></td>
<td>[Arguments]</td>
<td>${host}=${HOST_IP}</td>
<td>${user}=${SSH_ADMIN_USER_NAME}</td>
<td>${pwd}=${SSH_ADMIN_PASSWORD}</td>
</tr>
<tr>
<td class="name"></td>
<td>Open Connection</td>
<td>${host}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Login</td>
<td>${user}</td>
<td>${pwd}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Shutdown SSH Connection">Shutdown SSH Connection</a></td>
<td>Close Connection</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Execute SSH Command">Execute SSH Command</a></td>
<td>[Arguments]</td>
<td>${host}</td>
<td>${user}</td>
<td>${pwd}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${command}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Create SSH Connection</td>
<td>${host}</td>
<td>${user}</td>
<td>${pwd}</td>
</tr>
<tr>
<td class="name"></td>
<td>${result} =</td>
<td>Execute Command</td>
<td>${command}</td>
<td>both</td>
</tr>
<tr>
<td class="name"></td>
<td>Shutdown SSH Connection</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Return]</td>
<td>${result}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Set New Subscriber Airtime Balance To">Set New Subscriber Airtime Balance To</a></td>
<td>[Arguments]</td>
<td>${initial_balance}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Documentation]</td>
<td class="colspan3" colspan="3">Edits the config file "AccountDatabase.xml" and sets the initial account balance for new accounts. Any account created after this will have this value as account balance after creation.</td>
</tr>
<tr>
<td class="name"></td>
<td>Stop Tomcat</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${result} =</td>
<td>Execute SSH Command</td>
<td>${HOST_IP}</td>
<td>${SSH_ADMIN_USER_NAME}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${SSH_ADMIN_PASSWORD}</td>
<td>sed -i 's|resource.setField("balance", new java.math.BigDecimal(.*));|resource.setField("balance", new java.math.BigDecimal(${initial_balance}));|' ${ERS_CONF_DIR}/accountlinksimulator/AccountDatabase.xml</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Should Be Empty</td>
<td>${result[1]}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Start Accountlink Simulator</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Add One Line Into File">Add One Line Into File</a></td>
<td>[Arguments]</td>
<td>${file}</td>
<td>${line}</td>
<td>${ip}=${HOST_IP}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${ssh_user}=${SSH ADMIN USER NAME}</td>
<td>${ssh_pwd}=${SSH ADMIN PASSWORD}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Create SSH Connection</td>
<td>${ip}</td>
<td>${ssh_user}</td>
<td>${ssh_pwd}</td>
</tr>
<tr>
<td class="name"></td>
<td>${result} =</td>
<td>Execute Command</td>
<td>grep ${line} ${file}|wc -l</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Run Keyword If</td>
<td>"${result}" == "0"</td>
<td>Execute Command</td>
<td>echo "${line}"&gt;&gt; ${file}</td>
</tr>
<tr>
<td class="name"></td>
<td>Shutdown SSH Connection</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Remove One Line From File">Remove One Line From File</a></td>
<td>[Arguments]</td>
<td>${file}</td>
<td>${line}</td>
<td>${ip}=${HOST_IP}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${ssh_user}=${SSH ADMIN USER NAME}</td>
<td>${ssh_pwd}=${SSH ADMIN PASSWORD}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Create SSH Connection</td>
<td>${ip}</td>
<td>${ssh_user}</td>
<td>${ssh_pwd}</td>
</tr>
<tr>
<td class="name"></td>
<td>${result} =</td>
<td>Execute Command</td>
<td>grep ${line} ${file}|wc -l</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Run Keyword If</td>
<td>"${result}" != "0"</td>
<td>Execute Command</td>
<td>sed -i "/businesslogic.mappings.13.rule_chain=RECEIVER_PRINCIPAL_SUBRESELLER/d" ${file}</td>
</tr>
<tr>
<td class="name"></td>
<td>Shutdown SSH Connection</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Get Property Value From File">Get Property Value From File</a></td>
<td>[Arguments]</td>
<td>${property_key}</td>
<td>${file_path}</td>
<td>${ip}=${HOST_IP}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${ssh_user}=${SSH ADMIN USER NAME}</td>
<td>${ssh_pwd}=${SSH ADMIN PASSWORD}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Documentation]</td>
<td class="colspan3" colspan="3">Returns the value of a property from a file, given the file path, and the property key.\n<br>
Example:\n<br>
\n<br>
----------- file.properties -------------------\n<br>
first.value=Ett\n<br>
second.value=Två\n<br>
------------------------------------------------\n<br>
\n<br>
${value}= | Get Property Value From File | second.value | file.properties\n<br>
\n<br>
=&gt; ${value} = Två</td>
</tr>
<tr>
<td class="name"></td>
<td>${result} =</td>
<td>Execute SSH Command</td>
<td>${ip}</td>
<td>${ssh_user}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${ssh_pwd}</td>
<td>grep ^${property_key} ${file_path}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${value} =</td>
<td>Fetch From Right</td>
<td>${result[0]}</td>
<td>=</td>
</tr>
<tr>
<td class="name"></td>
<td>[Return]</td>
<td>${value}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Change Property Value In File">Change Property Value In File</a></td>
<td>[Arguments]</td>
<td>${property_key}</td>
<td>${new_value}</td>
<td>${file_path}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${ip}=${HOST_IP}</td>
<td>${ssh_user}=${SSH ADMIN USER NAME}</td>
<td>${ssh_pwd}=${SSH ADMIN PASSWORD}</td>
</tr>
<tr>
<td class="name"></td>
<td>[Documentation]</td>
<td class="colspan3" colspan="3">Changes the value of a property in a file, given the file path, the property key, and the new value.\n<br>
Example:\n<br>
\n<br>
----------- file.properties -------------------\n<br>
first.value=Ett\n<br>
second.value=Två\n<br>
------------------------------------------------\n<br>
\n<br>
Change Property Value In File | second.value | Two | file.properties\n<br>
\n<br>
=&gt; \n<br>
----------- file.properties -------------------\n<br>
first.value=Ett\n<br>
second.value=Two\n<br>
------------------------------------------------</td>
</tr>
<tr>
<td class="name"></td>
<td>${result} =</td>
<td>Execute SSH Command</td>
<td>${ip}</td>
<td>${ssh_user}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${ssh_pwd}</td>
<td>sed -i 's%^${property_key}=.*$%${property_key}=${new_value}%' ${file_path}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Should Be Empty</td>
<td>${result[1]}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${result} =</td>
<td>Execute SSH Command</td>
<td>${ip}</td>
<td>${ssh_user}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${ssh_pwd}</td>
<td>sed -i 's%^${property_key} = .*$%${property_key} = ${new_value}%' ${file_path}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Newest Catalina Log">Newest Catalina Log</a></td>
<td>[Arguments]</td>
<td>${input}</td>
<td>${ip}=${HOST_IP}</td>
<td>${ssh_user}=${SSH_ADMIN_USER_NAME}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${ssh_pwd}=${SSH_ADMIN_PASSWORD}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Create SSH Connection</td>
<td>${ip}</td>
<td>${ssh_user}</td>
<td>${ssh_pwd}</td>
</tr>
<tr>
<td class="name"></td>
<td>${result} =</td>
<td>Execute Command</td>
<td>tail -60 ${CS_LOG}|grep ${input}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Shutdown SSH Connection</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Return]</td>
<td>${result}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Clean SMS">Clean SMS</a></td>
<td>[Arguments]</td>
<td>${ip}=${HOST_IP}</td>
<td>${ssh_user}=${SSH_ADMIN_USER_NAME}</td>
<td>${ssh_pwd}=${SSH_ADMIN_PASSWORD}</td>
</tr>
<tr>
<td class="name"></td>
<td>Create SSH Connection</td>
<td>${ip}</td>
<td>${ssh_user}</td>
<td>${ssh_pwd}</td>
</tr>
<tr>
<td class="name"></td>
<td>Execute Command</td>
<td>cat ${Kannel_LOG} &gt;&gt; ${Kannel_backup_LOG}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Execute Command</td>
<td>&gt;${Kannel_LOG}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Shutdown SSH Connection</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Latest TDR">Latest TDR</a></td>
<td>[Arguments]</td>
<td>${folder}=${TDR_FOLDER}</td>
<td>${ip}=${HOST_IP}</td>
<td>${ssh_user}=${SSH_ADMIN_USER_NAME}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${ssh_pwd}=${SSH_ADMIN_PASSWORD}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Create SSH Connection</td>
<td>${ip}</td>
<td>${ssh_user}</td>
<td>${ssh_pwd}</td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>Execute Command</td>
<td>tdrapp restart</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>${secs} =</td>
<td>Execute Command</td>
<td>sec=$( date '+%S' ) &amp;&amp; printf '%2d \n' "$sec"</td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>${down} =</td>
<td>Evaluate</td>
<td>60-${secs}</td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>sleep</td>
<td>${down}</td>
<td>wait to generate TDR</td>
</tr>
<tr>
<td class="name"></td>
<td>${result}=</td>
<td>Execute Command</td>
<td>ls ${folder}|wc -l</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>log</td>
<td>Verify if TDR is existing</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Should not be equal</td>
<td>${result}</td>
<td>0</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${tdr}=</td>
<td>Execute Command</td>
<td>tail -1 $(ls -ctr1 ${folder}/* | tail -1)</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Comment</td>
<td>${tdr}=</td>
<td>Execute Command</td>
<td>cat $(ls -ctr1 ${TDR_FOLDER}/* | tail -1)</td>
</tr>
<tr>
<td class="name"></td>
<td>Shutdown SSH Connection</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Return]</td>
<td>${tdr}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Import Reseller">Import Reseller</a></td>
<td>[Arguments]</td>
<td>${serial}</td>
<td>${msisdn}</td>
<td>${group}=Group1</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${contract}=Standard</td>
<td>${passwd}=2009</td>
<td>${pre_activate}=true</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${ip}=${HOST_IP}</td>
<td>${ssh_user}=${SSH_ADMIN_USER_NAME}</td>
<td>${ssh_pwd}=${SSH_ADMIN_PASSWORD}</td>
</tr>
<tr>
<td class="name"></td>
<td>Create SSH Connection</td>
<td>${ip}</td>
<td>${ssh_user}</td>
<td>${ssh_pwd}</td>
</tr>
<tr>
<td class="name"></td>
<td>Execute Command</td>
<td>echo "&lt;Terminals&gt; &lt;ImprintTerminal serial=\\"${serial}\\" terminal_class=\\"Phone\\"&gt; &lt;/ImprintTerminal&gt; &lt;/Terminals&gt;" &gt;${terminal_file}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Execute Command</td>
<td>echo "&lt;Resellers&gt; &lt;Reseller reseller_type_id=\\"distributor\\" contract_id=\\"${contract}\\" subgroup=\\"\\" name=\\"Distributor ${msisdn}\\" subsubgroup=\\"\\" group=\\"${group}\\" store_id=\\"DIST${msisdn}\\" reseller_id=\\"DIST${msisdn}\\" parent_reseller_id=\\"OPERATOR\\"&gt; &lt;Terminals product_range=\\"standard\\" receipt_template=\\"standard\\"&gt; &lt;AssignTerminal serial=\\"${serial}\\" address_lock=\\"${msisdn}\\" activation_code=\\"1234\\" default_user_id=\\"9900\\" pre_activate=\\"${pre_activate}\\"/&gt; &lt;/Terminals&gt; &lt;Users&gt; &lt;User user_id=\\"9900\\" password=\\"2009\\" role_id=\\"POS\\"&gt; &lt;/User&gt; &lt;User user_id=\\"admin\\" password=\\"${passwd}\\" role_id=\\"Reseller\\"&gt; &lt;/User&gt; &lt;/Users&gt; &lt;Accounts auto_create=\\"true\\"&gt;&lt;/Accounts&gt; &lt;/Reseller&gt; &lt;/Resellers&gt;" &gt;${reseller_file}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Execute Command</td>
<td>jacore b2.tools.imports.SubmitImport "Terminal import" ${terminal_file}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Execute Command</td>
<td>jacore b2.tools.imports.SubmitImport "Reseller import" ${reseller_file}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Shutdown SSH Connection</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Return]</td>
<td>${result}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Restart Tomcat">Restart Tomcat</a></td>
<td>Open Connection</td>
<td>${HOST_IP}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Login</td>
<td>${SSH_ADMIN_USER_NAME}</td>
<td>${SSH_ADMIN_PASSWORD}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${return_value} =</td>
<td>Execute Command</td>
<td>tomcat restart</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Close Connection</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>sleep</td>
<td>10</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Latest TDR Should have">Latest TDR Should have</a></td>
<td>[Arguments]</td>
<td>${keywords}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${tdr}=</td>
<td>Latest TDR</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Should Contain</td>
<td>${tdr}</td>
<td>${keywords}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Return]</td>
<td>${result}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Restart App">Restart App</a></td>
<td>[Arguments]</td>
<td>${app}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Open Connection</td>
<td>${HOST_IP}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Login</td>
<td>${SSH_ADMIN_USER_NAME}</td>
<td>${SSH_ADMIN_PASSWORD}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${return_value} =</td>
<td>Execute Command</td>
<td>${app} restart</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Close Connection</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>sleep</td>
<td>10</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Set New Activation Status In CS">Set New Activation Status In CS</a></td>
<td>[Arguments]</td>
<td>${value}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Documentation]</td>
<td class="colspan3" colspan="3">Edits the config file "SubscriberDatabase.xml" and sets the activationStatusFlag for new value. 0=true, 1=false, for the first call testing, it should be false</td>
</tr>
<tr>
<td class="name"></td>
<td>${result} =</td>
<td>Execute SSH Command</td>
<td>${HOST_IP}</td>
<td>${SSH_ADMIN_USER_NAME}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${SSH_ADMIN_PASSWORD}</td>
<td>sed -i 's|resource.setField("activationStatusFlag", 0);|resource.setField("activationStatusFlag", ${value});|' ${CS_FILE_PATH}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${result} =</td>
<td>Execute SSH Command</td>
<td>${HOST_IP}</td>
<td>${SSH_ADMIN_USER_NAME}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${SSH_ADMIN_PASSWORD}</td>
<td>sed -i 's|resource.setField("activationStatusFlag", 1);|resource.setField("activationStatusFlag", ${value});|' ${CS_FILE_PATH}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Should Be Empty</td>
<td>${result[1]}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>restart cs</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Restart CS">Restart CS</a></td>
<td>Open Connection</td>
<td>${HOST_IP}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Login</td>
<td>${SSH_ADMIN_USER_NAME}</td>
<td>${SSH_ADMIN_PASSWORD}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${return_value} =</td>
<td>Execute Command</td>
<td>cs3simulator restart</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Close Connection</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>sleep</td>
<td>10</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Set receiver SMS prefix">Set receiver SMS prefix</a></td>
<td>[Arguments]</td>
<td>${prefix}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Documentation]</td>
<td class="colspan3" colspan="3">*Function*:\nTo set txe default sms prefix for receiver in the properties file and restart the txe.\n*Input*:\nprefix, e.x. + or empty\n*Return*:\nNo return values. \n*Example*:\n</td>
</tr>
<tr>
<td class="name"></td>
<td>${current_value}=</td>
<td>Get Property Value From File</td>
<td>smsprovider.to_prefix</td>
<td>${TXE_PROPERTIES_FILE_PATH}</td>
</tr>
<tr>
<td class="name"></td>
<td>Run Keyword If</td>
<td>'${current_value}' != '${prefix}'</td>
<td>Change Property Value In File</td>
<td>smsprovider.to_prefix</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${prefix}</td>
<td>${TXE_PROPERTIES_FILE_PATH}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>restart txe</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Stop App">Stop App</a></td>
<td>[Arguments]</td>
<td>${app}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Open Connection</td>
<td>${HOST_IP}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Login</td>
<td>${SSH_ADMIN_USER_NAME}</td>
<td>${SSH_ADMIN_PASSWORD}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${return_value} =</td>
<td>Execute Command</td>
<td>${app} stop</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Close Connection</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Start App">Start App</a></td>
<td>[Arguments]</td>
<td>${app}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Open Connection</td>
<td>${HOST_IP}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Login</td>
<td>${SSH_ADMIN_USER_NAME}</td>
<td>${SSH_ADMIN_PASSWORD}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${return_value} =</td>
<td>Execute Command</td>
<td>${app} start</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Close Connection</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>sleep</td>
<td>10</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Deposit Reseller by depositimporter">Deposit Reseller by depositimporter</a></td>
<td>[Arguments]</td>
<td>${type}</td>
<td>${name}</td>
<td>${amount}</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${ip}=${HOST_IP}</td>
<td>${ssh_user}=${SSH_ADMIN_USER_NAME}</td>
<td>${ssh_pwd}=${SSH_ADMIN_PASSWORD}</td>
</tr>
<tr>
<td class="name"></td>
<td>Create SSH Connection</td>
<td>${ip}</td>
<td>${ssh_user}</td>
<td>${ssh_pwd}</td>
</tr>
<tr>
<td class="name"></td>
<td>Execute Command</td>
<td>&gt;/var/seamless/log/depositimporter/depositimporter.log</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Execute Command</td>
<td>cat /var/seamless/log/depositimporter/depositimporter.log&gt; /var/seamless/log/depositimporter/depositimporter.log.backup</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Execute Command</td>
<td>echo "receiverId,receiverType,receiverAccountTypeId,amount" &gt;${reseller_import_file}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Execute Command</td>
<td>echo "${name},${type},RESELLER,${amount}" &gt;&gt;${reseller_import_file}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Execute Command</td>
<td>depositimporter ${reseller_import_file}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${result_message}=</td>
<td>Execute Command</td>
<td>egrep 'error code|ERROR' /var/seamless/log/depositimporter/depositimporter.log</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>${result_code}=</td>
<td>Execute Command</td>
<td>egrep 'error code|ERROR' /var/seamless/log/depositimporter/depositimporter.log|wc -l</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Shutdown SSH Connection</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Return]</td>
<td>${result_code}</td>
<td>${result_message}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Tail Last 3 line Smslog">Tail Last 3 line Smslog</a></td>
<td>[Arguments]</td>
<td>${ip}=${HOST_IP}</td>
<td>${ssh_user}=${SSH_ADMIN_USER_NAME}</td>
<td>${ssh_pwd}=${SSH_ADMIN_PASSWORD}</td>
</tr>
<tr>
<td class="name"></td>
<td>sleep</td>
<td>5</td>
<td>wait for SMS</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Create SSH Connection</td>
<td>${ip}</td>
<td>${ssh_user}</td>
<td>${ssh_pwd}</td>
</tr>
<tr>
<td class="name"></td>
<td>${result} =</td>
<td>Execute Command</td>
<td>tail -4 ${Kannel_LOG}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Shutdown SSH Connection</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Return]</td>
<td>${result}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"><a name="keyword_Set TXE language">Set TXE language</a></td>
<td>[Arguments]</td>
<td>${language}</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>[Documentation]</td>
<td class="colspan3" colspan="3">*Function*:\nTo set txe default language in the properties file and restart the txe.\n*Input*:\ndesired language code. e.x. en, ar, fr \n*Return*:\nNo return values. \n*Example*:\n</td>
</tr>
<tr>
<td class="name"></td>
<td>${current_language1}=</td>
<td>Get Property Value From File</td>
<td>businesslogic.actions.TOPUP_NOTIFICATION.default_language</td>
<td>${BUSINESSLOGIC_PROPERTIES_FILE_PATH}</td>
</tr>
<tr>
<td class="name"></td>
<td>Run Keyword If</td>
<td>'${language}' != '${current_language1}'</td>
<td>Change Property Value In File</td>
<td>businesslogic.actions.TOPUP_NOTIFICATION.default_language</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${language}</td>
<td>${BUSINESSLOGIC_PROPERTIES_FILE_PATH}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Run Keyword If</td>
<td>'${language}' != '${current_language1}'</td>
<td>Restart App</td>
<td>${TXE_NAME}</td>
</tr>
<tr>
<td class="name"></td>
<td>${current_language2}=</td>
<td>Get Property Value From File</td>
<td>businesslogic.actions.ETOPUP_TRANSFER_NOTIFICATION.default_language</td>
<td>${BUSINESSLOGIC_PROPERTIES_FILE_PATH}</td>
</tr>
<tr>
<td class="name"></td>
<td>Run Keyword If</td>
<td>'${language}' != '${current_language2}'</td>
<td>Change Property Value In File</td>
<td>businesslogic.actions.ETOPUP_TRANSFER_NOTIFICATION.default_language</td>
</tr>
<tr>
<td class="name"></td>
<td>...</td>
<td>${language}</td>
<td>${BUSINESSLOGIC_PROPERTIES_FILE_PATH}</td>
<td></td>
</tr>
<tr>
<td class="name"></td>
<td>Run Keyword If</td>
<td>'${language}' != '${current_language2}'</td>
<td>Restart App</td>
<td>${TXE_NAME}</td>
</tr>
<tr>
<td class="name"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</body>
</html>
